export default [
    {
        id:1,
        top:[
            {
                id:'top1-1',
                text:'添加用户'
            },
            {
                id:'top1-2',
                text:'更新用户'
            }
        ],
        con:[
            {
                id:'con1-1',                 //唯一的id
                type:'input',                //渲染的标签
                rules:[{ required: true }],  //校验规则
                field:'user_name',
                placeholder:'请输入用户名',
            },
            {
                id:'con1-2',                 //唯一的id
                type:'input',                //渲染的标签
                rules:[{ required: true }],  //校验规则
                field:'user_pwd',
                placeholder:'请输入密码',
            },
            {
                id:'con1-3',
                type:'select',
                rules:[],
                field:'identity_id',
                placeholder:'请选择身份id',
                //请求数据 
                showData:'userIndentity',
                value:'identity_id',
                text:'identity_text'
            }
        ],
        submitType:'addUser'
    },
    {
        id:2,
        top:[
            {
                id:'top2-1',
                text:'添加身份'
            }
        ],
        con:[
            {
                id:'con2-1',                 //唯一的id
                type:'input',                //渲染的标签
                rules:[{ required: true }],  //校验规则
                field:'identity_text',
                placeholder:'请输入身份名称',
            },
        ],
        submitType:'addIdentity'
    },
    {
        id:3,
        top:[
            {
                id:'top3-1',
                text:'添加api接口权限'
            }
        ],
        con:[
            {
                id:'con3-1',                 //唯一的id
                type:'input',                //渲染的标签
                rules:[{ required: true }],  //校验规则
                field:'api_authority_text',
                placeholder:'请输入api接口权限名称',
            },
            {
                id:'con3-2',                 //唯一的id
                type:'input',                //渲染的标签
                rules:[{ required: true }],  //校验规则
                field:'api_authority_url',
                placeholder:'请输入api接口权限url',
            },
            {
                id:'con3-3',                 //唯一的id
                type:'input',                //渲染的标签
                rules:[{ required: true }],  //校验规则
                field:'api_authority_method',
                placeholder:'请输入api接口权限方法',
            },
        ],
        submitType:'addApiAuthority'
    },
    {
        id:4,
        top:[
            {
                id:'top4-1',
                text:'添加视图接口权限'
            }
        ],
        con:[
            {
                id:'con4-1',
                type:'select',
                rules:[{ required: true }],
                field:'view_id',
                placeholder:'请选择已有视图',
                //请求数据 
                showData:'viewAuthority',
                value:'view_authority_id',
                text:'view_authority_text'
            }
        ],
        submitType:'addAuthorityView'
    },
    {
        id:5,
        top:[
            {
                id:'top5-1',
                text:'给身份设置api接口权限'
            }
        ],
        con:[
            {
                id:'con5-1',
                type:'select',
                rules:[],
                field:'identity_id',
                placeholder:'请选择身份id',
                //请求数据 
                showData:'userIndentity',
                value:'identity_id',
                text:'identity_text'
            },
            {
                id:'con5-2',
                type:'select',
                rules:[],
                field:'api_authority_id',
                placeholder:'请选择api接口权限',
                //请求数据 
                showData:'apiAuthority',
                value:'api_authority_id',
                text:'api_authority_text'
            }
        ],
        submitType:'setIdentityApi'
    },
    ,
    {
        id:6,
        top:[
            {
                id:'top6-1',
                text:'给身份设置视图权限'
            }
        ],
        con:[
            {
                id:'con6-1',
                type:'select',
                rules:[],
                field:'identity_id',
                placeholder:'请选择身份id',
                //请求数据 
                showData:'userIndentity',
                value:'identity_id',
                text:'identity_text'
            },
            {
                id:'con6-2',
                type:'select',
                rules:[{ required: true }],
                field:'view_id',
                placeholder:'请选择已有视图',
                //请求数据 
                showData:'viewAuthority',
                value:'view_authority_id',
                text:'view_authority_text'
            }
        ],
        submitType:'setIdentityView'
    }
]